kamailio-5.x: add a note about the uci file
authorSebastian Kemper <[email protected]>
Mon, 5 Nov 2018 21:36:20 +0000 (22:36 +0100)
committerSebastian Kemper <[email protected]>
Mon, 5 Nov 2018 21:36:22 +0000 (22:36 +0100)
Echoes a message upon installation and points the user to
/etc/config/kamailio.

Signed-off-by: Sebastian Kemper <[email protected]>
net/kamailio-5.x/Makefile

index 899c573a731b8edcb91a918cb42ebf1f2b25173a..7b5bf67a1e2221de388ff7abd4a5f0847af68039 100644 (file)
@@ -280,6 +280,20 @@ $(foreach c,kamailio.cfg kamctlrc,$(call Package/kamailio5/install/conffile,$(1)
                $(1)/usr/lib/kamailio/
 endef
 
+define Package/kamailio5/postinst
+#!/bin/sh
+if [ -z "$${IPKG_INSTROOT}" ]; then
+  echo
+  echo "o-------------------------------------------------------------------o"
+  echo "| Kamailio note                                                     |"
+  echo "o-------------------------------------------------------------------o"
+  echo "| Edit /etc/config/kamailio to change basic init configuration.     |"
+  echo "o-------------------------------------------------------------=^_^=-o"
+  echo
+fi
+exit 0
+endef
+
 define Package/kamailio5/install/conffile
        $(INSTALL_DIR) $(1)/etc/kamailio
        $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/kamailio/$(2) $(1)/etc/kamailio